<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>

<s:include value="../header.jsp"></s:include>
<s:include value="../leftNav.jsp"></s:include>

<div id="content">

<div id="tabs">
	<ul>
		<li><s:a href="#tabs-1" action="testActionJsp.action">Create new customer</s:a></li>
		<li><s:a href="#tabs-2" action="testActionJsp.action">Licence details</s:a></li>
		<li><s:a href="#tabs-3" action="testActionJsp.action">Address</s:a></li>
	</ul>
	<div id="tabs-1">
 		<h3>Please insert new customer data:</h3>
		<s:form name="addForm" method="post" action="editCustomerForm.action">
			<s:textfield name="companyName" label="Company name" />
			<s:textfield name="director" label="Director" />
		 	<s:textfield name="email" label="Email address" />
		 	<s:textfield name="fax" label="Fax number" />
		 	<s:textfield name="phone" label="Phone number" />
			<s:submit type="button" name="Add" />
		</s:form>
	</div>
	<div id="tabs-2">
 		<h3>Please insert new licence details:</h3>
		<s:form name="addForm" method="post" action="editCustomerForm.action">
			<s:textfield name="licenceNr" label="Licence number" />
			<sx:datetimepicker name="licenceGained" label="Licence Gained" 
				displayFormat="dd-MMM-yyyy" value="todayDate" />
			<sx:datetimepicker name="licenceExpired" label="Licence Expired" 
				displayFormat="dd-MMM-yyyy" value="todayDate" />
			<s:textfield name="projectsLimit" label="Projects limit" />
		 	<s:textfield name="usersLimit" label="Users limit" />
			<s:submit type="button" name="Add" />
		</s:form>
	</div>
	<div id="tabs-3">
 		<h3>Please insert customer address:</h3>
		<s:form name="addForm" method="post" action="editCustomerForm.action">
			<s:textfield name="city" label="City" />
			<s:textfield name="address1" label="Address" />
		 	<s:textfield name="state" label="State" />
		 	<s:textfield name="zipcode" label="Zipcode" />
		 	<s:select label="Country" headerKey="-1"
				headerValue="select country" list="countries" name="country" />
			<s:submit type="button" name="Add" />
		</s:form>
	</div>
</div>